;var module = angular.module('CtrlsContent');
module.controller('ContentCtrl',['$scope','$state','api_other','$stateParams',function($scope,$state,api_other,$stateParams){
	$scope.content = '';
	$scope.title = $stateParams.title;
	$scope.event = {
		back:function(){
			$state.go($stateParams.parent);
		},
		get:function(){
			var obj = {
				keyId:$stateParams.id,
			};
			var promise = api_other.dianticontent(obj);
			promise.success(function(data){
				if(data.returnCode == 0){
					$scope.content = data.returnData.contet;
				}
			})
		}
	};
	$scope.event.get();
}])